﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:s="clr-namespace:MockupDesigner.AppItems"
                    xmlns:c="clr-namespace:MockupDesigner.Items">

    <!-- Control Templates For Items-->
    <ControlTemplate x:Key="TreeViewControlTemplate" TargetType="{x:Type c:TreeViewItem}">
        <TreeView HorizontalAlignment="Left" VerticalAlignment="Top" Height="{Binding Path=Height, RelativeSource={RelativeSource AncestorType={x:Type c:TreeViewItem}}}" Width="{Binding Path=Width, RelativeSource={RelativeSource AncestorType={x:Type c:TreeViewItem}}}"
                  ItemsSource="{Binding Path=ItemsSource, RelativeSource={RelativeSource AncestorType={x:Type c:TreeViewItem}}}" 
                      Style="{DynamicResource TreeViewStyle}"/>
    </ControlTemplate>

    <!-- ToolBox -->
    <s:Toolbox x:Key="MenusToolbox">
        <c:MenuItem IsHitTestVisible="False" ToolTip="Menu">
            <Border Style="{DynamicResource BorderStyle}" >
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Vertical" Grid.Column="0"/>
                    <StackPanel Orientation="Vertical" Grid.Column="1"/>
                </Grid>
            </Border>
        </c:MenuItem>
        <c:TreeViewItem IsHitTestVisible="False" ToolTip="TreeView"
            Template="{DynamicResource TreeViewControlTemplate}"/>
    </s:Toolbox>
</ResourceDictionary>